<form action="" class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">
            输入框
        </label>
        <div class="layui-input-block">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="title" placeholder="请输入标题" required="" type="text">
            </input>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            密码框
        </label>
        <div class="layui-input-inline">
            <input autocomplete="off" class="layui-input" lay-verify="required" name="password" placeholder="请输入密码" required="" type="password">
            </input>
        </div>
        <div class="layui-form-mid layui-word-aux">
            辅助文字
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            选择框
        </label>
        <div class="layui-input-block">
            <select lay-verify="required" name="city">
                <option value="">
                    请选择
                </option>
                <option value="0">
                    北京
                </option>
                <option value="1">
                    上海
                </option>
                <option value="2">
                    广州
                </option>
                <option value="3">
                    深圳
                </option>
                <option value="4">
                    杭州
                </option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            复选框
        </label>
        <div class="layui-input-block">
            <input name="like[write]" title="写作" type="checkbox">
                <input checked="" name="like[read]" title="阅读" type="checkbox">
                    <input name="like[dai]" title="发呆" type="checkbox">
                    </input>
                </input>
            </input>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            开关
        </label>
        <div class="layui-input-block">
            <input lay-skin="switch" name="switch" type="checkbox">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            单选框
        </label>
        <div class="layui-input-block">
            <input name="sex" title="男" type="radio" value="男">
            <input checked="" name="sex" title="女" type="radio" value="女">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">
            文本域
        </label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" required lay-verify="required" name="desc" placeholder="请输入"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-filter="formDemo" lay-submit="">
                立即提交
            </button>
            <button class="layui-btn layui-btn-primary" type="reset">
                重置
            </button>
        </div>
    </div>
</form>